package com.lw.yygh.model.user;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * UserInfo
 * </p>
 *
 * @author qy
 */
@Data
@TableName("user_info")
public class UserInfo {
	
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;

	//微信openid
	@TableField("openid")
	private String openid;

	//昵称
	@TableField("nick_name")
	private String nickName;

	//手机号
	@TableField("phone")
	private String phone;

	//用户姓名
	@TableField("name")
	private String name;

	//证件类型
	@TableField("certificates_type")
	private String certificatesType;

	//证件编号
	@TableField("certificates_no")
	private String certificatesNo;

	//证件路径
	@TableField("certificates_url")
	private String certificatesUrl;

	//认证状态（0：未认证 1：认证中 2：认证成功 -1：认证失败)
	@TableField("auth_status")
	private Integer authStatus;

	//value = "状态（0：锁定 1：正常）"
	@TableField("status")
	private Integer status;

	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	private Integer isDeleted;

	@TableField(exist = false) //被该注解标注的，将不会被录入到数据库中。只作为普通的javaBean属性
	private Map<String,Object> param = new HashMap<>();
}

